package com.team.order.mapper;

import com.team.order.domain.RepairReservation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Sandman
* @description 针对表【biz_repair_reservation(维修预约表)】的数据库操作Mapper
* @createDate 2025-07-12 11:22:40
* @Entity com.team.order.domain.RepairReservation
*/
public interface RepairReservationMapper {

    int deleteByPrimaryKey(Long id);

    int insert(RepairReservation record);

    int insertSelective(RepairReservation record);

    RepairReservation selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RepairReservation record);

    int updateByPrimaryKey(RepairReservation record);

    Long addRepair(RepairReservation repairReservation);
    
    /**
     * 根据商户ID和状态查询维修预约列表
     * @param merchantId 商户ID
     * @param status 状态（可选）
     * @return 预约列表
     */
    List<RepairReservation> selectByMerchantIdAndStatus(@Param("merchantId") Long merchantId, @Param("status") String status);
}
